<template>
  <div class="cardCContainer">
    <div class="cardCHeader">
      <div class="cardCHeaderLeft">
        <p>{{ props.title }}</p>
      </div>
      <slot></slot>
      <div class="cardCHeaderRight">
        <btn_a :title="i18nt.buttons.more2" font-size="18px" />
      </div>
    </div>
    <div class="cardCBody">
      <btn_radio_b />
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    required: false,
    default: "Test",
  },
});

import btn_radio_b from "../buttons/btn_radio_b.vue";
import btn_a from "../buttons/btn_a.vue";

import { i18nt } from "@/i18n";
</script>

<style lang="scss" scoped>
.cardCContainer {
  @include relative_hw(744px, 726px);
  flex-direction: column;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.09);
  transition: all 0.3s ease-in-out;

  &:hover {
    box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.09);
  }

  .cardCHeader {
    @include relative_hw(80px, 100%);
    flex-direction: row;
    justify-content: space-between;

    align-items: center;
    flex-shrink: 0;
    .cardCHeaderLeft {
      @include relative_hw(30px, 88px);
      margin-left: 30px;
      align-items: center;
      p {
        font-family: "PingFang SC-Medium";
        font-size: 22px;
        color: #035db9;
      }
    }
    .cardCHeaderRight {
      @include rel_cen_hw(25px, 58px);
      margin-right: 20px;
    }
  }

  .cardCBody {
    @include rel_cen_hw(664, 726px);
    flex-direction: column;
    align-content: space-between;
    flex-shrink: 0;
  }
}
</style>
